/**
 * Description: SIGALRM信号会终止进程
 * File: sig_alarm.c |Time: 2021-04-08 22:06
 */

#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
    alarm(5);

    while (1) {
        printf("runing...\n");
        sleep(1);
    }

    return 0;
}

